package marchsoft.modules.four.admin.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import marchsoft.base.IBasicService;
import marchsoft.base.PageVO;
import marchsoft.modules.four.admin.entity.dto.RepositoryDTO;
import marchsoft.modules.four.admin.entity.dto.RepositoryDTOH5;
import marchsoft.modules.four.common.entity.Repository;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface ReService extends IBasicService<Repository> {

    //分页条件查询
    IPage<Repository> queryAll1(PageVO pageVO, RepositoryDTO repositoryDTO);

//    //查询安全分类名称
//    List<SafeType> selectAllName();

    //新增题库
    void insertRE(Repository repository);

    //更新题库
    void updateRe(Repository repository);

    //根据id删除
    void deleteRe(List<Integer> id);

    //批量导入
    void importRepository(MultipartFile file, HttpServletResponse res);

    //导出数据List
    List<RepositoryDTOH5> queryAll(RepositoryDTOH5 repositoryDTOH5);

    //导出数据，条件查询
    LambdaQueryWrapper<Repository> analysisQueryCriteria(RepositoryDTOH5 repositoryDTOH5);

    //导出数据
    void download(List<RepositoryDTOH5> queryAll,HttpServletResponse response) throws IOException;
}
